﻿/*******************************************************************************
 * AAEngine
 * Copyright (c) 2010 Mike Jarosch
 *
 * Original source:
 * Copyright (C) 2011 Microsoft Corporation
 *
 * This file is licensed under the terms of the  Microsoft Permissive License 
 * (Ms-PL), which is included in the "Microsoft Permissive License.rtf" file at
 * the root directory of this SDK.
 ******************************************************************************/

using System;
using Microsoft.Xna.Framework;

namespace AAEngine.Screens
{
    /// <summary>
    /// Custom event argument which includes the index of the player who
    /// triggered the event. This is used by the MenuEntry.Selected event.
    /// </summary>
    public class PlayerIndexEventArgs : EventArgs
    {
        /// <summary>
        /// Constructor.
        /// </summary>
        public PlayerIndexEventArgs(PlayerIndex playerIndex)
        {
            _playerIndex = playerIndex;
        }


        /// <summary>
        /// Gets the index of the player who triggered this event.
        /// </summary>
        public PlayerIndex PlayerIndex
        {
            get { return _playerIndex; }
        }

        private PlayerIndex _playerIndex;
    }
}
